/**
 * 
 */
package org.codesketch.controller.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Quirno Brizi
 *
 */
@Document
public class Task {

	@Id
	private Long id;
	private String name;
	private String description;
	private Integer delay;
	
	private Application application;
	private Environment environment;
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @return the delay
	 */
	public Integer getDelay() {
		return delay;
	}

	public Test toTest() {
		return new Test(application, environment);
	}
}
